package com.csu.mall.product.feign;

import com.csu.mall.common.dto.SkuReductionTo;
import com.csu.mall.common.utils.R;
import com.csu.mall.product.Dto.SpuBoundsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "coupon")
public interface CouponFeignService {
    @GetMapping("coupon/couponspucategoryrelation/hello")
    public String sayHello();

    @PostMapping("coupon/spubounds/save")
    public R save(@RequestBody SpuBoundsDto spuBounds);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    public R saveInfo(@RequestBody SkuReductionTo reductionTo);
}
